package com.loop.homework.phone;

public class PhoneTest {
    public static void main(String[] args) {
        //普通手机
        Phone p1 = new Phone();
        p1.setBrand("诺基亚");
        p1.setPrince(3000);
        p1.call();
        System.out.println(p1.getBrand()+"--"+p1.getPrince()+"--"+p1.getSize());

        System.out.println("--------------------------------");
        //智能手机
        Phone p2 = new SmartPhone("华为",7000);
        p2.call();
        System.out.println(p2.getBrand()+"--"+p2.getPrince()+"--"+p2.getSize());
    }
}
